package com.cc.micro.api.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * <p>
 * 收益记录表
 * </p>
 *
 * @author cc
 * @since 2023-07-01
 */
@Data
@ApiModel(value = "用户收益记录")
public class IncomeRecord implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "收益记录标识")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty(value = "用户ID")
    @TableField(value = "uid")
    private Integer uid;
    @ApiModelProperty(value = "产品ID")
    @TableField(value = "loan_id")
    private Integer loanId;
    @ApiModelProperty(value = "投标记录ID")
    @TableField(value = "bid_id")
    private Integer bidId;
    @ApiModelProperty(value = "投资金额")
    @TableField(value = "bid_money")
    private BigDecimal bidMoney;
    @ApiModelProperty(value = "收益时间")
    @TableField(value = "income_date")
    private LocalDate incomeDate;
    @ApiModelProperty(value ="收益金额" )
    @TableField(value = "income_money")
    private BigDecimal incomeMoney;
    @ApiModelProperty(value ="收益状态（0未返，1已返）" )
    @TableField(value = "income_status")
    private Integer incomeStatus;


}
